/**
 * 2018年5月22日上午12:04:03
 */
package com.an.nopro.app.framework.schedulejob;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.an.nopro.app.framework.respository.PersonRepository;

/**

 * @目的：Quartz测试类.<br>
 * 
 * @author 86171
 * @date 2018年5月22日上午12:04:03
 * 
 */
public class QuartzJobHello implements Job {

	private static final Logger logger = LoggerFactory.getLogger(QuartzJobHello.class);
	@Autowired
	private PersonRepository personRepository;
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		logger.info("当前");
		System.err.println("当前时QuartzJobHello" + personRepository.findAll());
	}

}
